﻿using System.Collections;
using System.Collections.Generic;
using System;
using System.Text;

using System.IO;
using System.Data;
using System.Xml;
using System.Web.Security;
using System.Security.Cryptography;
using System.Net;
using System.Web;

namespace Gift.WebApp
{
    /// <summary>
    ///BasicSet 的摘要说明
    /// </summary>
    public class BasicSet
    {
        // Fields
        protected string basicSetXmlPath = "/cn/xml/website_set.xml";

        // Methods
        public string DescriptionBind()
        {
            string attribute = "";
            try
            {
                XmlDocument document = new XmlDocument();
                document.Load(HttpContext.Current.Server.MapPath(this.basicSetXmlPath));
                attribute = ((XmlElement)document.SelectSingleNode("set/cn_description")).GetAttribute("value");
            }
            catch
            {
            }
            return attribute;
        }

        public string KeywordBind()
        {
            string attribute = "";
            try
            {
                XmlDocument document = new XmlDocument();
                document.Load(HttpContext.Current.Server.MapPath(this.basicSetXmlPath));
                attribute = ((XmlElement)document.SelectSingleNode("set/cn_keword")).GetAttribute("value");
            }
            catch
            {
            }
            return attribute;
        }

        public string TitleBind()
        {
            string attribute = "";
            try
            {
                XmlDocument document = new XmlDocument();
                document.Load(HttpContext.Current.Server.MapPath(this.basicSetXmlPath));
                attribute = ((XmlElement)document.SelectSingleNode("set/cn_enterprise_name")).GetAttribute("value");
            }
            catch
            {
            }
            return attribute;
        }

    }
}